<template>
  <div id="footer">
    <div class="all">
      <input type="checkbox" :checked="fullStatus" @change="fullChange" />
      <span>全选</span>
    </div>
    <div class="countM">
      <span>合计:{{ allM }}</span>
    </div>
    <div class="sell">
      <span>结算({{ allC }})</span>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    fullStatus: {
      default: false,
      type: Boolean,
    },
    allM: {
      default: 0,
      type: Number,
    },
    allC: {
      default: 0,
      type: Number,
    },
  },
  methods: {
    fullChange(e) {
      this.$emit('fullChange', e.target.checked)
    },
  },
}
</script>

<style lang="less">
#footer {
  display: flex;
  width: 100%;
  height: 3rem;
  background-color: azure;
  align-content: center;
  flex-wrap: wrap;
  font-size: 1rem;

  .all {
    height: 2rem;
    line-height: 2rem;
    flex: 1;
  }

  .countM {
    line-height: 2rem;
    height: 2rem;
    flex: 1;
  }

  .sell {
    text-align: center;
    line-height: 2rem;
    width: 100%;
    flex: 1;
    height: 2rem;
    background-color: rgba(0, 115, 255, 0.978);
    border-radius: 50%;
    font-weight: 500;
  }
}
</style>
